// LIB_EXPORTS is used by the CMake build system.  DLL_EXPORT is
// used by the autotools build system.
#if (defined (LIB_EXPORTS) && !defined (PROPERTY_VIEW_LIB_STATIC))
#  undef PROPERTY_VIEW_LIB_BUILD_DLL
#  define PROPERTY_VIEW_LIB_BUILD_DLL
#endif

#if !defined (PROPERTY_VIEW_LIB_BUILD_DLL)
#  undef PROPERTY_VIEW_LIB_STATIC
#  define PROPERTY_VIEW_LIB_STATIC
#endif

#if defined (PROPERTY_VIEW_LIB_STATIC) && defined (PROPERTY_VIEW_LIB_BUILD_DLL)
#  error PROPERTY_VIEW_LIB_STATIC and PROPERTY_VIEW_LIB_BUILD_DLL cannot be defined both.
#endif

#if defined (PROPERTY_VIEW_LIB_BUILD_DLL)
#  if defined (LIB_EXPORTS)
#    define PROPERTY_VIEW_LIB_API __declspec(dllexport)
#  else
#    define PROPERTY_VIEW_LIB_API __declspec(dllimport)
#  endif
#else
#  define PROPERTY_VIEW_LIB_API
#endif
